package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_l_ck_login", desc = "登录", autoSave = true, uploadCk = true)
public class LogLogin extends ServerBaseLog {

	@FieldTypeAnnotation(desc = "用户id", isIndex = true)
	private long userId;

	@FieldTypeAnnotation(desc = "类型 0:登录 1:下线")
	private int type;              //0：登录；1：下线

	@FieldTypeAnnotation(desc = "ip")
	private String ip = "";

	@FieldTypeAnnotation(desc = "设备id")
	private String deviceId;

	@FieldTypeAnnotation(desc = "赚速")
	private String earnSpeed;

	@FieldTypeAnnotation(desc = "银两")
	private String silver;

	@FieldTypeAnnotation(desc = "门客战力")
	private String patronsAbility;

	public LogLogin(long userId, int type, String ip, String deviceId, String earnSpeed, String silver, String patronsAbility) {
		this.userId = userId;
		this.type = type;
		this.ip = ip;
		this.deviceId = deviceId;
		this.earnSpeed = earnSpeed;
		this.silver = silver;
		this.patronsAbility = patronsAbility;
	}

	@Override
	public long getUserId() {
		return userId;
	}
}
